/************************************************************************
 * The code is owned by mainframer.cn and Shang Tao
 * Without aproval of mainframer.cn and Shang Tao, removing the copyright
 * infomation is regarded as invassion of proprietary copyright
 ***********************************************************************/
package com.mr.qa.exception;

public class QaException extends Exception
{
    private String code;
    public QaException()
    {
        super();
    }
    public QaException(Exception exception) 
    {
           super(exception);
    }    
    public QaException(String exception) 
    {
           super(exception);
    }
    public QaException(String code,Exception exception) 
    {
        this(exception);    
        this.code = code;
    }    
    public QaException(String code,String exception) 
    {
        this(exception);    
        this.code = code;
    }

    public void setCode(String code)
    {
        this.code = code;
    }
    
    public String getCode()
    {
        return code;
    }
    public String toString()
    {
        return this.code+this.getMessage();
    }
}
